package com.dna.okangjang.main.model;

import java.io.Serializable;

public class DBlog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6330766953452771499L;
	
	private String title;
	private String link;
	private String description;
	private String comment;
	private String author;
	private String pubDate;
	
	private String imgUrl;
	
	public String getTitle() {
		return this.stripTag(title);
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getDescription() {
		return this.stripTag(description);
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPubDate() {
		return pubDate;
	}
	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	private String stripTag(String str){
		str = str.replaceAll("&lt;b&gt;", "");
		str = str.replaceAll("&lt;/b&gt;", "");
		str = str.replaceAll("&#39;", "");
		return str;
	}

}
